
#ifndef TP_BITMAP_FACTORY_H
#define TP_BITMAP_FACTORY_H

#include "tp_bitmap.h"
#include "tp_image_decoder.h"

TP_DECL_BEGIN

struct _TpBitmapFactory;
typedef struct _TpBitmapFactory TpBitmapFactory;

void tp_bitmap_factory_init(void);

void tp_bitmap_factory_uninit(void);

TpRet tp_bitmap_factory_add_decoder(TpImageDecoder* decoder);

TpBitmap* tp_bitmap_factory_load(const char* file);

TP_DECL_END

#endif

